/*
 * Creation : 17/09/2013
 */
package com.japcatalog.dao;

import java.util.Collection;

import com.japcatalog.model.Provider;

/**
 * The Interface ProviderDao.
 */
public interface ProviderDao {

	/**
	 * Find all.
	 * 
	 * @return the collection
	 */
	public Collection<Provider> findAll();

	/**
	 * Find by id.
	 * 
	 * @param id
	 *            the id
	 * @return the provider
	 */
	public Provider findById(Long id);

	/**
	 * Creates the.
	 * 
	 * @param provider
	 *            the provider
	 * @return the long
	 */
	public Long create(Provider provider);

	/**
	 * Update.
	 * 
	 * @param provider
	 *            the provider
	 */
	public void update(Provider provider);

	/**
	 * Delete.
	 * 
	 * @param provider
	 *            the provider
	 */
	public void delete(Provider provider);

	/**
	 * Delete.
	 * 
	 * @param id
	 *            the id
	 */
	public void delete(Long id);

}
